import { createRouter, createWebHashHistory } from 'vue-router'
import { beforeEach, afterEach } from './permission'
import { routes } from './routes'


const router = createRouter({
    history: createWebHashHistory(),
    routes
})
router.beforeEach(beforeEach)
router.afterEach(afterEach)
export default router